#pragma once
#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <stdbool.h>

typedef int Data;

typedef struct QueueNode
{
	struct QueueNode* next;
	Data x;
}Qnode;

typedef struct Queue
{
	Qnode* head;
	Qnode* tail;
	int size;
}Queue;


void QueueInit(Queue* pq);
void QueueDestroy(Queue* pq);
void QueuePush(Queue* pq,Data x);
void QueuePop(Queue* pq);

bool QueueEpt(Queue* pq);
int QueueSize(Queue* pq);

Data QueueGethead(Queue* pq);
Data QueueGettail(Queue* pq);





 

